package org.ihelpuoo.weboo.tag.ajax;

import javax.servlet.jsp.JspException;

public class PropertyTag extends SettingTag
{

	private static final long	serialVersionUID	= -92995878212016861L;
	private String				name;

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getValue()
	{
		return this.getBodyStringTrimed();
	}

	@Override
	protected void end() throws JspException
	{
		((ViewTag)this.getParent()).addProperty(this);
	}

	@Override
	protected boolean isAvailable()
	{
		return !this.isBlankBody();
	}

}
